using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace  Hostal.Bussines.Entities
{
    public partial class Empleado
    {
        public Empleado()
        {
            this.CheckIns = new List<CheckIn>();
            this.CheckOuts = new List<CheckOut>();
        }

        public int IdEmpleados { get; set; }
        public int IdPedido { get; set; }

        [Required(ErrorMessage = "Ingrese Nombre")]
        public string Nombres { get; set; }

        [Required(ErrorMessage = "Ingrese Apellidos")]
        public string Apellidos { get; set; }

        [Required(ErrorMessage = "Ingrese Dni")]
        [Range(100000, 99999999, ErrorMessage = "El Dni Ingresado es incorrecto")]
        public string DNI { get; set; }

        [Required(ErrorMessage = "Ingrese Cargo")]
        public string Cargo { get; set; }

        [Required(ErrorMessage = "Ingrese Sueldo")]
        [Range(100, 99999, ErrorMessage = "El Sueldo Ingresado es incorrecto")]
        public decimal Sueldo { get; set; }

        [Required(ErrorMessage = "Ingrese Direccion")]
        public string Direccion { get; set; }

        [Required(ErrorMessage = "Ingrese Celular")]
        [Range(100000000, 999999999, ErrorMessage = "Celular Incorrecto")]
        public string Celular { get; set; }

        [Required(ErrorMessage = "Ingrese La Fecha de Inicio")]
        public System.DateTime FechaInicio { get; set; }

        [Required(ErrorMessage = "Ingrese La Fecha de Fin")]
        public System.DateTime FechaTermino { get; set; }
        public bool Sexo { get; set; }
        public virtual ICollection<CheckIn> CheckIns { get; set; }
        public virtual ICollection<CheckOut> CheckOuts { get; set; }
        public virtual Pedido Pedido { get; set; }
    }
}
